package org.jsrml.core.supplier.qo;

import org.jsrml.common.persistence.BaseQO;
import org.jsrml.common.persistence.query.QueryCondition;
import org.jsrml.common.persistence.query.QueryConditionType;
import org.jsrml.common.persistence.query.QueryConfig;

@QueryConfig(daoBeanId="supplyBankService")
public class SupplyBankQO extends BaseQO<String> {
	
	@QueryCondition(name = "vendor", type = QueryConditionType.LEFT_JOIN)
	private VendorQO vendorQO;
	
	@QueryCondition(name = "vendor", type = QueryConditionType.FETCH_EAGER)
	private Boolean fetchVendor;
	
	
	/**
	 * 开户银行
	 */
	@QueryCondition(name = "bank", type = QueryConditionType.LIKE_ANYWHERE)
	private String bank;
	
	/**
	 * 银行账号
	 */
	@QueryCondition(name = "account", type = QueryConditionType.LIKE_ANYWHERE)
	private String account;
	
	/**
	 * 主要银行账户，0：是，1：不是
	 */
	@QueryCondition(name = "mainAccount")
	private Integer mainAccount;

	public VendorQO getVendorQO() {
		return vendorQO;
	}

	public void setVendorQO(VendorQO vendorQO) {
		this.vendorQO = vendorQO;
	}

	public Boolean getFetchVendor() {
		return fetchVendor;
	}

	public void setFetchVendor(Boolean fetchVendor) {
		this.fetchVendor = fetchVendor;
	}

	public String getBank() {
		return bank;
	}

	public void setBank(String bank) {
		this.bank = bank;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public Integer getMainAccount() {
		return mainAccount;
	}

	public void setMainAccount(Integer mainAccount) {
		this.mainAccount = mainAccount;
	}
	
}
